package com.kintreda.ieco_server.bean.user;

import com.kintreda.ieco_server.bean.account.User;
import com.kintreda.ieco_server.bean.system.BaseVo;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.math.BigDecimal;

/**
 *
 * 用户使用详统计
 *
 *
 *
 * @Created by IntelliJ IDEA
 * @Project_Name ieco_server
 * @Package com.kintreda.ieco_server.bean.user
 * @Author ZhongYao_H
 * @Date 2019/4/28:16:20
 * @Year 2019 Month 04 Day 28
 * @Date_zh 2019 年 四月 星期日
 */
@Entity
@Table(name="statistics")
public class Statistics extends BaseVo {

    private BigDecimal balance=new BigDecimal(0);//余额
    private String userId;
    private String orgId;//
    private String type="0";//0 个人余额 1机构余额
    //========================临时变量================
    @Transient
    private String sumBalance="0.0";//总收入/余额
    @Transient
    private String sackNum="0.0";//袋子数量
    @Transient
    private String claim="0.0";//认领数
    @Transient
    private String deliveryQuantity="0.0";//总投递量 总 kg
    @Transient
    private String num = "0";//总收集数
    @Transient
    private String misconductNum="0.0";//不当行为数
    @Transient
    private Integer praise=0;//点赞
    @Transient
    private Double  car=0.0;//累计装车量
    @Transient
    private Integer receive=0;//领取
    @Transient
    private Integer improper=0;//不当使用
    @Transient
    private User user;
    @Transient
    private Object other;

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public String getSumBalance() {
        return sumBalance;
    }

    public void setSumBalance(String sumBalance) {
        this.sumBalance = sumBalance;
    }

    public String getSackNum() {
        return sackNum;
    }

    public void setSackNum(String sackNum) {
        this.sackNum = sackNum;
    }

    public String getClaim() {
        return claim;
    }

    public void setClaim(String claim) {
        this.claim = claim;
    }

    public String getDeliveryQuantity() {
        return deliveryQuantity;
    }

    public void setDeliveryQuantity(String deliveryQuantity) {
        this.deliveryQuantity = deliveryQuantity;
    }

    public String getMisconductNum() {
        return misconductNum;
    }

    public void setMisconductNum(String misconductNum) {
        this.misconductNum = misconductNum;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getPraise() {
        return praise;
    }

    public void setPraise(Integer praise) {
        this.praise = praise;
    }

    public Double getCar() {
        return car;
    }

    public void setCar(Double car) {
        this.car = car;
    }

    public Integer getReceive() {
        return receive;
    }

    public void setReceive(Integer receive) {
        this.receive = receive;
    }

    public Integer getImproper() {
        return improper;
    }

    public void setImproper(Integer improper) {
        this.improper = improper;
    }


    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public Object getOther() {
        return other;
    }

    public void setOther(Object other) {
        this.other = other;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
